<template>
  <a-list-item-meta
    :description="description"
    :title="title"
  >
    <template v-if="$slots.avatar" #avatar>
      <slot name="avatar" />
    </template>
    <template v-if="$slots.description" #description>
      <slot name="description" />
    </template>
    <template v-if="$slots.title" #title>
      <slot name="title" />
    </template>
    <slot />
  </a-list-item-meta>
</template>

<script>
import { defineComponent } from 'vue'
import { ListItemMeta } from 'ant-design-vue'
export default defineComponent({
  name: 'ZListItemMeta',
  components: {
    AListItemMeta: ListItemMeta
  },
  props: {
    description: {
      type: String,
      default: undefined
    },
    title: {
      type: String,
      default: undefined
    }
  }
})
</script>
